#ifndef HTMLELEMENT_H
#define HTMLELEMENT_H

#include <QList>
#include <QString>
#include "namespace.h"

class Body;
class HtmlAttributeList;
class HtmlAttribute;

class HtmlElement : public Namespace
{
public:
    HtmlElement(const QString& tag, const QString& varName, HtmlAttributeList* attribs, Body* body, const YYLTYPE& loc);

    QString tag() const { return m_tag; }
    QString varName() const { return m_varName; }
    HtmlAttributeList* attributeList() const { return m_attribs; }
    Body* body() const { return m_body; }

    virtual Node* getEntry( const QString& name );

private:
    QString m_tag;
    QString m_varName;
    HtmlAttributeList* m_attribs;
    Body* m_body;
};

#endif // HTMLELEMENT_H
